﻿<%@ Page Title="" Language="VB" MasterPageFile="~/NavegacaoMaster.master" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<script runat="server">

    Protected Sub btnPesquisar_Click(ByVal sender As Object, ByVal e As System.EventArgs)
        Session("strFiltro") = txtBusca.Text
        Response.Redirect("listarNoticiasPesquisaSimples.aspx")
    End Sub

    Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
        Response.Redirect("listarNoticiasPesquisaAvancada.aspx")
    End Sub
</script>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
  <asp:ScriptManager ID="ScriptManager1" runat="server">
  </asp:ScriptManager>
  <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="Listar"
    TypeName="extranet.bc.BCNoticia"></asp:ObjectDataSource>
  <table>
    <tr>
      <td style="width: 15px">
      </td>
      <td style="width: 343px">
        <p class="titulo-pagina">
          Busca em Notícias</p>
      </td>
      <td valign="middle" style="width: 231px">
        <asp:TextBox ID="txtBusca" runat="server" Width="100px"></asp:TextBox>
        <asp:Button ID="btnPesquisar" runat="server" OnClick="btnPesquisar_Click" SkinID="btnPadrao"
          Text="Buscar" Width="61px" />
        <asp:LinkButton ID="LinkButton1" runat="server" SkinID="lnkGridView" OnClick="LinkButton1_Click">Avançada</asp:LinkButton>
      </td>
    </tr>
  </table>
  <table>
    <tr>
      <td style="width: 15px">
        &nbsp;
      </td>
      <td colspan="2">
        <cc1:Accordion ID="Accordion1" runat="server" HeaderCssClass="divCinza" BorderColor="ActiveBorder"
          HeaderSelectedCssClass="divLaranja" ContentCssClass="divBranco" DataSourceID="ObjectDataSource1"
          FadeTransitions="true">
          <HeaderTemplate>
            <%# Eval("Titulo") %>
            <%#Eval("DataPostagemFormatada")%>
          </HeaderTemplate>
          <ContentTemplate>
            <img style="width: 380px" src='<%# MetodosComuns.GetVirtualPath & "/imagens/noticias/" & Eval("NomeImagem") %>' alt="" /><br />
            <%# Eval("Corpo") %>
          </ContentTemplate>
        </cc1:Accordion>
      </td>
    </tr>
    <tr>
      <td style="width: 15px">
        &nbsp;
      </td>
      <td colspan="2">
        &nbsp;
      </td>
    </tr>
  </table>
  <!--Rev62 -->
</asp:Content>
